import request from '@/utils/request'

export function fetchVersionList(data) {
  return request({
    url: '/cloud-system/getVersionList',
    method: 'post',
    data
  })
}

export function fetchVersionOne(data) {
  return request({
    url: '/cloud-system/getOneVersionDetail',
    method: 'post',
    data
  })
}

export function deleteVersion(data) {
  return request({
    url: '/cloud-system/deleteOneVersion',
    method: 'post',
    data
  })
}

export function lockVersion(data) {
  return request({
    url: '/cloud-system/lockOneVersion',
    method: 'post',
    data
  })
}

export function unlockVersion(data) {
  return request({
    url: '/cloud-system/unlockOneVersion',
    method: 'post',
    data
  })
}

export function batchLockVersion(data) {
  return request({
    url: '/cloud-system/batchLockVersion',
    method: 'post',
    data
  })
}

export function batchUnLockVersion(data) {
  return request({
    url: '/cloud-system/batchUnLockVersion',
    method: 'post',
    data
  })
}

export function createVersion(data) {
  return request({
    url: '/cloud-system/createOneVersion',
    method: 'post',
    data
  })
}

export function updateVersion(data) {
  return request({
    url: '/cloud-system/updateOneVersion',
    method: 'post',
    data
  })
}

export function batchDeleteVersion(data) {
  return request({
    url: '/cloud-system/batchDeleteVersion',
    method: 'post',
    data
  })
}
